﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UpdateApp
{
    public partial class Simple : System.Web.UI.Page
    {
        protected string display = "";
        protected string date = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {                               
                if (!Common.CheckUserHost(HttpContext.Current))
                    display = "none";

                Session.Remove("FileList");

                //删除超出保存期限的文件夹
                Thread thread = new Thread(FileHelper.DelDirectories);
                thread.Start();
            }
            else
            {
                UploaderFileByBaidu up = new UploaderFileByBaidu();

                up.SaveFile();
            }

            date = DateTime.Now.ToString("yyyy-MM-dd");
        }        

    }
}